.foxui-message {
    min-width: 380px;
    max-width: 70%;
    border-radius: $--border-radius-base;
    border-width: $--border-width-base;
    border-style: $--border-style-base;
    position: fixed;
    left: 50%;
    top: $--message-top-default;
    transform: translateX(-50%);
    transition: $--message-transition-default;
    overflow: hidden;
    padding: $--message-padding-default;
    display: flex;
    align-items: center;
    border-color: $--color-info-light;
    background-color: $--color-info-lighter;
    color: $--color-info;
}

.foxui-message-content {
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    &::before {
        font-family: 'foxuifont';
        font-size: $--font-size-medium;
        padding-right: $--padding-extra-small;
    }
}

.foxui-message-primary {
    border-color: $--color-primary-light-8;
    background-color: $--color-primary-light-9;
    color: $--color-primary;

    .foxui-message-content {
        &::before {
            content: '';
        }
    }
}

.foxui-message-success {
    border-color: $--color-success-light;
    background-color: $--color-success-lighter;
    color: $--color-success;

    .foxui-message-content {
        &::before {
            content: '\e85a';
        }
    }
}

.foxui-message-danger {
    border-color: $--color-danger-light;
    background-color: $--color-danger-lighter;
    color: $--color-danger;

    .foxui-message-content {
        &::before {
            content: '\e849';
        }
    }
}

.foxui-message-warning {
    border-color: $--color-warning-light;
    background-color: $--color-warning-lighter;
    color: $--color-warning;

    .foxui-message-content {
        &::before {
            content: '\e7db';
        }
    }
}

.foxui-message-info {
    border-color: $--color-info-light;
    background-color: $--color-info-lighter;
    color: $--color-info;

    .foxui-message-content {
        &::before {
            content: '\e7fa';
        }
    }
}

.foxui-message-close__button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: $--color-text-secondary;
    padding: $--padding-extra-small $--padding-medium $--padding-extra-small $--padding-extra-small;
}
